package cn.dankal.flyaudio.login;

import cn.dankal.basiclib.base.BasePresenter;
import cn.dankal.basiclib.base.BaseStateView;
import cn.dankal.basiclib.base.BaseView;
import cn.dankal.business.Constants;
import cn.dankal.business.pojo.BaseBeanList;
import cn.dankal.business.pojo.CommentBean;
import cn.dankal.business.pojo.CurrentBean;
import cn.dankal.business.pojo.InfoBean;
import cn.dankal.business.pojo.ReasonBean;
import cn.dankal.flyaudio.information.detail.InformationContract;

/**
 * Creater: slientwhale.
 * CreatedTime: 2019/3/2
 * Desc: 检查项目的协定
 * Remark:
 */
public interface AccountCheckContract {

    interface Presenter extends BasePresenter<View>{

        /**
         * 检查手机或者邮箱是否存在
         *
         * @param checkType 检查类型
         * @param checkStr 检查字符串
         *
         * */
        void checkPhoneOrEmailIsExits(Constants.CheckType checkType,String checkStr,CheckCallback callback);

    }

    interface CheckCallback {

        void onPhoneOrEmailCheckIsExist(Constants.CheckType checkType);

        void onPhoneOrEmailCheckIsNotExist(Constants.CheckType checkType);

        void onPhoneOrEmailCheckError(String errorInfo);

    }

    interface View extends BaseView{

    }

}
